<%--
  User: Shengzhao Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <title>首页 - Cooking Account</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/cooking-main.css"/>
</head>
<body>
<div class="page">
    <div id="header_menu">
        <a class="offline-button" href="form" id="record">记录</a>
        <a class="offline-button" href="settlement/form" id="settlement">结算</a>
        <a class="offline-button" href="settlement/real_time" id="real_time">实时信息</a>
    </div>
    <div>
        已记录的金额:<strong>${overviewDto.recordedAmount}</strong>元; 已结算的金额:<strong>${overviewDto.finishedAmount}</strong>元.
    </div>
    <div id="grid_container">
        <display:table name="${overviewDto}" cellpadding="0" cellspacing="0" id="ck" requestURI="overview"
                       class="default-table">
            <display:column property="date" title="日期" headerClass="default-table-header" style="width:15%;"/>
            <display:column property="amount" title="金额" headerClass="default-table-header" style="width:10%;"/>
            <display:column property="creatorName" title="记录人" headerClass="default-table-header" style="width:15%;"/>
            <display:column property="status" title="状态" headerClass="default-table-header" style="width:10%;"/>
            <display:column property="description" title="描述" headerClass="default-table-header" style="width:42%;"/>
            <display:column title="操作" headerClass="default-table-header">
                <c:if test="${ck.allowEdit}">
                    <a href="form?guid=${ck.guid}">修改</a>
                    <a href="delete/${ck.guid}" onclick="return confirm('确认删除该记录?');">删除</a>
                </c:if>
            </display:column>
        </display:table>
    </div>
</div>
<div id="footer">
    <p>&copy; 2013 Andaily. All Rights Reserved.</p>
</div>
</body>
</html>